def calculate(num) -> tuple:
    ave = 0
    sum = 0
    return_list = []
    for item in num:
        sum += eval(item)
    ave = sum / len(num)
    for item in num:
        if eval(item) > ave:
            return_list.append(eval(item))
    return ave, return_list


if __name__ == "__main__":
    num_input = input("Please input numbers,and press the Enter to end.(gap with ,)")
    print("")
    num_list = num_input.split(",")
    ans_tuple = calculate(num_list)
    print(ans_tuple)
